package com.gome.ss.webserver.server;

import java.io.IOException;

import com.gome.ss.common.AppConfiguer;
import com.gome.ss.core.plugin.PluginManager;
import com.gome.ss.core.schedule.ScheduleCore;
import com.gome.ss.core.schedule.ScheduleManager;
import com.gome.ss.flowcrawl.plugin.FlowCrawlManager;


public class SpiderSchedule {
	
	/**
	 * @param args
	 * @throws InterruptedException 
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException, InterruptedException {
		// TODO Auto-generated method stub
		AppConfiguer.initLog4j();
		AppConfiguer.initSpiderkitClient();
		AppConfiguer.initFlowCrawlSpider();
		AppConfiguer.initSSDB();
		
		ScheduleManager sc = ScheduleManager.getInstance();
		
		PluginManager.getInstance();
		
		FlowCrawlManager.initFlowCrawlPlugin();
		
		WebServer server = new WebServer();
		server.start();
	}

}
